<?php
require_once("../../config/config.inc.php");
require_once("task_function.php"); 

$sTaskEditAll = fn_isNull($_SESSION["task_enable_editall"],"none"); //editall
if ($sTaskEditAll != "editall") {
    echo "{success:false,msg:'no rights'}";
    return;
}

$sStartDate  = fn_getParam("strStartDate","");
$sFinishDate = fn_getParam("strFinishDate","");
$calcDur = new CalculateDuration();
$sDur = $calcDur->calcDuration($sStartDate,$sFinishDate);
echo $sDur;
?>